package morning.cat.service;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @describe: 类描述信息
 * @author: morningcat.zhang
 * @date: 2020/1/6 1:39 PM
 */
@Service
public class MyService {

	@Setter
	@Getter
	@Autowired
	UserService userService;

	public MyService() {
		System.out.println("MyService 实例化");
	}

	/**
	 * 生命周期 初始化 回调方法
	 */
	@PostConstruct
	public void post() {
		System.out.println("MyService PostConstruct");
	}
}
